package com.qing.dao;

import com.qing.domain.News;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository                 //和@AutoWrited一对，不能漏！！！！！
public interface NewsDao {
    void addNews(News news);
    void deleteNewsByName(String newsName);
    List<News> getAllNews();
    News getNewsById(int newsId);
}
